package com.atguigu.jxc.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 商品类别
 */
@Data
@NoArgsConstructor
public class GoodsType {

  private Integer goodsTypeId;
  private String goodsTypeName;
  private Integer pId;
  private Integer goodsTypeState;
  private List<GoodsType> children;

  public GoodsType(String goodsTypeName, Integer goodsTypeState, Integer pId) {
    this.goodsTypeName = goodsTypeName;
    this.goodsTypeState = goodsTypeState;
    this.pId = pId;
  }

  public Integer getGoodsTypeId() {
    return goodsTypeId;
  }

  public void setGoodsTypeId(Integer goodsTypeId) {
    this.goodsTypeId = goodsTypeId;
  }

  public String getGoodsTypeName() {
    return goodsTypeName;
  }

  public void setGoodsTypeName(String goodsTypeName) {
    this.goodsTypeName = goodsTypeName;
  }

  public Integer getpId() {
    return pId;
  }

  public void setpId(Integer pId) {
    this.pId = pId;
  }

  public Integer getGoodsTypeState() {
    return goodsTypeState;
  }

  public void setGoodsTypeState(Integer goodsTypeState) {
    this.goodsTypeState = goodsTypeState;
  }

  public List<GoodsType> getChildren() {
    return children;
  }

  public void setChildren(List<GoodsType> children) {
    this.children = children;
  }
}
